//
//  ProductCell.m
//  Pacific_Computer
//
//  Created by 范琦 on 14-12-17.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ProductCell.h"

@implementation ProductCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.productLabel = [[UILabel alloc] init];
        //self.productLabel.backgroundColor = [UIColor yellowColor];
        self.productLabel.font = [UIFont systemFontOfSize:17];
        [self.contentView addSubview:self.productLabel];
        [_productLabel release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.productLabel.frame = CGRectMake(self.contentView.bounds.size.width * 26.08 / 100, self.contentView.bounds.size.height * 26.31 / 100, self.contentView.bounds.size.width * 86.95 / 100, self.contentView.bounds.size.height * 31.57 / 100);
    
}

- (void)dealloc
{
    [_productLabel release];
    [super dealloc];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
